﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HECore.Tenant.Repository.Entites
{
    /// <summary>
    /// 角色拥有功能表
    /// </summary>
    [Comment("角色拥有功能表")]
    public class RolePermission
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        [Comment("主键")]
        [Column(Order =0)]
        public Guid Id { get; set; }

        /// <summary>
        /// 租户Id
        /// </summary>
        [Comment("租户Id")]
        [Column(Order = 1)]
        public Guid TenantId { get; set; }

        /// <summary>
        /// 角色Id
        /// </summary>
        [Comment("角色Id")]
        [Column(Order = 2)]
        public Guid RoleId { get; set; }

        /// <summary>
        /// 功能名称
        /// </summary>
        [Comment("功能名称")]
        [Required]
        [Column(Order = 3)]
        public string FunctionName { get; set; }
    }
}
